<?php
include "../../classes/bd.php";


#DADOS BOLETIM
$acao	= $_REQUEST["acao"];
$tipo	= $_REQUEST["tipo"];
$id		= $_REQUEST["id"];

if($acao==1){
$sql	= mysql_query("INSERT INTO boletim(tipo,idnoticia) VALUES('".$tipo."','".$id."')");
}else{
$sql	= mysql_query("DELETE FROM boletim WHERE idnoticia = '".$id."'");
}

if($sql){
echo $acao;
}else{
echo mysql_error();
}

?>
